package io.dshubs.archives.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.dshubs.archives.entity.ArchiveMyFavorite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案鉴定表 Mapper 接口
 * </p>
 *
 * @author tan
 * @since 2021-08-27
 */
@Mapper
public interface ArchiveMyFavoriteMapper extends BaseMapper<ArchiveMyFavorite> {

    List<ArchiveMyFavorite> selectMyFavoriteList(@Param("archiveMyFavorite") Map<String, Object> archiveMyFavorite,
                                                 @Param("startLine") long startLine, @Param("pageSize") long pageSize);

    int selectMyFavoriteListCount(@Param("archiveMyFavorite") Map<String, Object> archiveMyFavorite);

    int insertMyFavorite(ArchiveMyFavorite archiveMyFavorite);

    int deleteMyFavorite(ArchiveMyFavorite archiveMyFavorite);

    int cancleMyFavorite(ArchiveMyFavorite archiveMyFavorite);
}
